- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:v-equal-set
- 80207:
Function test xfi:v-equal-set
Documentation
Tests of function xfi:v-equal-set($left as node()*, $right as node()*) as xs:boolean
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
19-02-2008 at 00:00:00 |
|
Richard Ashby |
CoreFiling Ltd
|
rna@corefiling.com |
30-11-2012 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670709
Test Case Variations
V-01
Returns v-equality of numeric items equal within precision and units
Documentation
Inputs
- schema: value-test-concepts.xsd
- instance: value-test-instance.xml
(DTS Discovery starting point)
(ID=V01)
-
Function Call:
xfi:v-equal-set( (//c:a[@id eq 't1'],//c:b[@id eq 't14']),
(//c:b[@id eq 't15'],//c:a[@id eq 't2']) )
(against file V01)
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq true()
V-02
Same as V-01 but numeric items not v-equal-set
Documentation
Inputs
- schema: value-test-concepts.xsd
- instance: value-test-instance.xml
(DTS Discovery starting point)
(ID=V02)
-
Function Call:
xfi:v-equal-set( (//c:a[@id eq 't1'],//c:b[@id eq 't14']),
(//c:b[@id eq 't15'],//c:a[@id eq 't3'] ))
(against file V02)
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-03
Same as V-01 but arguments are sequences
Documentation
Inputs
- schema: value-test-concepts.xsd
- instance: value-test-instance.xml
(DTS Discovery starting point)
(ID=V03)
-
Function Call:
xfi:v-equal-set( ( //c:a[@id eq 't1'], //c:a[@id eq 't4']),
( //c:a[@id eq 't2'], //c:a[@id eq 't5']) )
(against file V03)
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq true()
V-04
Same as V-01 but arguments are sequences not same length
Documentation
Inputs
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-05
Not a node argument to function
Documentation
XPath-defined error for node type incorrect.
Inputs
Outputs
-
Error code: xqt-err:XPTY0004
V-06
A sequence of concepts as argument
Documentation
XPath-defined error for node type incorrect arity of arguments.
Inputs
Outputs
-
Error code: xqt-err:XPST0017
V-07
Wrong node to function
Documentation
Functions spec error for non-item node type.
Inputs
Outputs
-
Error code: xfie:NodeIsNotXbrlItem
V-08
Performs set de-duplication of sequences
Documentation
Works for sequences containing duplicate entries, which are equal when compared as sets
Inputs
- schema: value-test-concepts.xsd
- instance: value-test-instance.xml
(DTS Discovery starting point)
(ID=V08)
-
Function Call:
xfi:v-equal-set(
( //c:a[@id='t1'], //c:a[@id='t2']),
( //c:a[@id='t1'], //c:a[@unitRef='unit-wacky-force2'], //c:a[@unitRef='unit-wacky-force1'])
)
(against file V08)
Outputs
-
Result test:
$result eq true()
Revisions
Name
|
On
|
Details
|
Herm Fischer |
19-02-2008 at 00:00:00 |
Created the test case.
|
Herm Fischer |
21-12-2010 at 00:00:00 |
Fixed typos per IHR 2010-12-21.
|
Richard Ashby |
30-11-2012 at 00:00:00 |
Added variation confirming de-duplication of sequences into sets.
|
Herm Fischer |
19-12-2012 at 15:00:00 |
Revised V08 to compare just items.
|